package com.sleepfish.activiti.mapper;

import com.sleepfish.activiti.util.BaseMapperX;
import com.sleepfish.activiti.domain.BpmProcessDefinitionExt;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * Bpm 流程定义的拓展表
 Mapper 接口
 * </p>
 *
 * @author xiaochao
 * @since 2022-03-12
 */
public interface BpmProcessDefinitionMapper extends BaseMapperX<BpmProcessDefinitionExt> {
    default List<BpmProcessDefinitionExt> selectListByProcessDefinitionIds(Collection<String> processDefinitionIds) {
        return selectList("process_definition_id", processDefinitionIds);
    }

    default BpmProcessDefinitionExt selectByProcessDefinitionId(String processDefinitionId) {
        return selectOne("process_definition_id", processDefinitionId);
    }

}
